home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
miscpas.zip
/
AVERAGE3.PAS
next >
Wrap
Pascal/Delphi Source File
|
1992-12-29
|
433b
|
28 lines
program average3;
var
first:real;
second:real;
third:real;
average:real;
sum:real;
a:integer;
begin
writeln('Please type in three numbers, seperated by spaces.');
write('>');
readln(first, second, third);
sum := first + second + third;
average := sum / 3;
writeln('The average of ' ,first,',' ,second,', and ',third);
writeln('is ',average);
for a := 1 to 52000 do;
end {average3}.